package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Article;

import java.util.List;

@Mapper
public interface ArticleMapper {
    //    根据id查询
    Article get(int id);
    //分页查询
    List<Article> getPage(Article article);
//    根据id查询文章内容
    List<Article> selectArticleById(int id);


}
